package com.server.server_a10.entity.lightingSystem;

import com.server.server_a10.entity.Equipment;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 一个Light类代表一个具体的灯
 * <p>
 * param:
 * id 唯一识别码
 * isOpen 开启状态
 * area_id 所属区域的唯一识别码
 */

@EqualsAndHashCode(callSuper = true)
@Data
public class Light extends Equipment {
    private boolean isOpen;

    public Light(){}

    public Light(long id, long roomId, long homeId, String name, boolean isOpen) {
        super(id, roomId, homeId, name);
        this.isOpen = isOpen;
    }
}
